package com.demo.miya.mq.rocketmq;

import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

/**
 * @author K
 */
@Slf4j
@Service
@RocketMQMessageListener(topic = "test-topic-1", consumerGroup = "test_another_consumer_group")
public class TestTopic1RocketMqAnotherConsumer implements RocketMQListener<String> {

    @Override
    public void onMessage(String message) {
        log.info("received topic=test-topic-1 consumer test_another_consumer_group message: {}", message);
    }
}
